<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="css/down.css" />
    <script src="js/jquery-2.2.1.js"></script>
    <script src="js/layer/layer.js"></script>
    <script type="text/javascript">
        document.getElementsByTagName("html")[0].style.fontSize=document.documentElement.clientWidth/7.5+"px";
    </script>
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
<script type="text/javascript">
    $.ajax({
        type:"get",
        url:"js/version.js?v="+new Date(),
        async:false
    });
    //加载版本控制 js
    createJs("js/common.js");
</script>
<div id = "tip" style="display: none;position:absolute;top:0;left:0;width:100%;height:100%;background: rgba(0,0,0,0.7)">
    <span style="position: absolute;top: 0.1rem;right: 0.1rem;width: 80%;height: auto;">
            <img style="width: 100%;height: auto;" src="images/weixin_jump.png">
    </span>
</div>
<div class="aui-content">
    <div class="downBg">
        <img src="images/downBgImg.png">
    </div>
    <div class="downTip">
        <h4>民贸直播商城</h4>
        <p>欢迎进入民贸直播&nbsp;&nbsp;&nbsp;开启欢乐购物</p>
    </div>
    <div class="aui-btn" id="downApp1">
        <a href="https://a.app.qq.com/o/simple.jsp?pkgname=com.shashazengpin.mall&fromcase=40002" >安卓下载</a>
    </div>
    <div class="aui-btn" style="margin-bottom: 0;" id="downApp2">
        <a href="https://apps.apple.com/cn/app/%E5%82%BB%E5%82%BB%E5%93%81%E7%89%8C%E7%BD%91/id1493179534" >IOS下载</a>
    </div>
</div>
</body>

<script>
    function is_weixin(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    $(function () {
        if(is_weixin()){
            $("#tip").show();
        }
        $("#downApp2").on('click',function () {
            window.location.href = $(this).children().attr("href");
        })
        $("#downApp1").on('click',function () {
            window.location.href = $(this).children().attr("href");
        })
    })
</script>
</html>